function FindDarkRPEnts()
	SystemOnline = true
	
hook.Add("HUDPaint", "FindDarkRPEnts", function()
	for _, ent in pairs(ents.GetAll()) do
		if ValidEntity(ent) and (ent:GetClass() == "money_printer" or ent:GetClass() == "drug_lab" or ent:GetClass() == "gunlab" or ent:GetClass() == "microwave"
		or ent:GetClass() == "spawned_shipment") then
			ent:SetMaterial("gzfrpwallhack/hai")
		else
			end
		end
	end)
end

FindDarkRPEnts()

concommand.Add("gzfrp_wallhack", function()

		if SystemOnline then
			hook.Remove("HUDPaint", "FindDarkRPEnts")
			
	for _, ent in pairs(ents.GetAll()) do
		if ValidEntity(ent) and (ent:GetClass() == "money_printer" or ent:GetClass() == "drug_lab" or ent:GetClass() == "gunlab" or ent:GetClass() == "microwave"
		or ent:GetClass() == "spawned_shipment") then
			ent:SetMaterial("")
	end
end

	LocalPlayer():ChatPrint("[Materials] - The money printers are hidden(wallhack off).")
		SystemOnline = false

			elseif !SystemOnline then
				FindDarkRPEnts()
				LocalPlayer():ChatPrint("[Materials] - ZOMG!11!!!!1! I CAN SEE PRINTERZ!!1!(Wallhack on).")
		SystemOnline = true
	end
end)